package kr.co.sdsway2.dao;

import java.util.List;

import kr.co.sdsway2.common.AbstractDAO;
import kr.co.sdsway2.vo.PollAswInfVO;

import org.springframework.stereotype.Repository;

@Repository
public class PollAswInfDAO extends AbstractDAO {
	
	public void insertPollSubAswInf(PollAswInfVO inVO) {
		getSqlMapClientTemplate().insert("insertPollAswInf", inVO);
	}
	
	@SuppressWarnings("unchecked")
	public List<PollAswInfVO> getPollSubAswInfList() {
		List<PollAswInfVO> PollAswInfVOList = getSqlMapClientTemplate().queryForList("getPollAswInfList");
		return PollAswInfVOList;
	}
	
	public PollAswInfVO getPollSubAswInf(PollAswInfVO inVO) {
		return (PollAswInfVO)getSqlMapClientTemplate().queryForObject("getPollAswInf", inVO);
	}
}